package com.siyuan.sns.admin.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.siyuan.sns.admin.dao.AdminDao;
import com.siyuan.sns.admin.domain.entity.Admin;
import com.siyuan.sns.admin.service.AdminService;

@Transactional
@Service("adminService")
public class AdminServiceImpl implements AdminService {
	private AdminDao adminDao;

	public void setAdminDao(AdminDao adminDao) {
		this.adminDao = adminDao;
	}

	@Override
	public Admin findByUsername(String username) {
		return this.adminDao.findByUsername(username);
	}
}
